//
//  BTEMeListTableViewCell.swift
//  BTE
//
//  Created by Mike Zhang on 2025/8/26.
//

import Foundation
import Alamofire
import SmartCodable



protocol ServerBaseModelProtocol: SmartCodable {
    
    associatedtype T: Codable


    var geothermally: Int {get set}
    

    var squushy: String {get set}
    

    var sidelingwise:T? {get set}
    
}



final class NetBaseModel<M:Codable>: ServerBaseModelProtocol {

    var sidelingwise: M?

    var geothermally: Int = 0
    
    var squushy: String = ""
    
    required init() {}
    
}


enum NetError: Error, LocalizedError {
    
    case unknow
    
    case Error(c: Int, m: String)
    
    var errorDescription: String? {
        switch self {
        case .unknow:
            return "unknow"
        case .Error(_, let b):
            return b
        }
    }
    
}


typealias RsultModel<M> = Result<M?, NetError>


final class BaseEmptyModel: SmartCodable { }


enum MIMEType: String {
    case image = "image/png"
}


